void main() {
  String username = "张三";
  print(username);
  String age = "flutter真好学";
  print(age);

  // 2. 修改字符串
  username = '张三丰';
  age = 'flutter soeasy';

  // 3. 字符串拼接
  //鸿蒙中用模板`${}`,flutter中不能使用反引号
  //+号拼接
  num job = 18;
  String info = '姓名：$username,职位${age},30年后的年龄是：${job + 30}';
  print(info);

  // 4. 字符串换行
  //1、\n   2、'''
  String poemStr1 = """
  q
  q
  q
  q
   """;

  String poemStr2 = "a,\na,\na,\na,\n";
  print({poemStr1, poemStr2});
}
